import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'
const state = {
  name: 'test',
}
const getters = {

}
const actions = {

}
const mutations = {

}


export default createStore({
    state,
    getters,
    actions,
    mutations,
    plugins: [createPersistedState(
        {
          storage: window.sessionStorage,
          reducer(val) {
            return {
              userInfo: val.userInfo,
            }
          }
        }
      )]
})
